﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace GUI
{
    /// <summary>
    /// Interaction logic for Teams.xaml
    /// </summary>
    public partial class TeamVindue : Window
    {
        public TeamVindue()
        {
            InitializeComponent();
        }

        private void textBox2_TextChanged(object sender, TextChangedEventArgs e)
        {
            //labelAntalHits.Content = (antal hold der mather søgestreng)
            //det nedenstående er til test-forsøg.
            string a = "99999";
            string b = "1";
            string c = labelAntalHits.Content.ToString();


            if (c.Contains(a))
            {
                labelAntalHits.Content = b;
            }

            else if (c.Contains(b))
            {
                labelAntalHits.Content = a;
            }
        }

        private void buttonTilbage_Click(object sender, RoutedEventArgs e)
        {
            this.Close();
        }

    }
}
